<!--
 * @Descripttion: 
 * @version: 
 * @Author: ada.wu
 * @Date: 2025-07-02 02:24:59
 * @LastEditors: ada.wu
 * @LastEditTime: 2025-07-11 12:12:55
-->
<style>
</style>
<div class=" layuimini-page-anim">
    <div class="layuimini-main">

        <div class="layui-form layuimini-form">
            <div class="layui-form-item">
                <label class="layui-form-label required">公司名称</label>
                <div class="layui-input-block">
                    <select class="layui-input" lay-append-to="body" placeholder="请选择" name="supplierCodes" lay-search>
                        <option value="1">行政</option>
                        <option value="2">客户服务部负责人</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label required">开户行</label>
                <div class="layui-input-block">
                    <select class="layui-input" lay-append-to="body" lay-verify="required" lay-reqtext="开户行不能为空"
                        placeholder="请选择" name="supplierCodes" lay-search>
                        <option value="1">行政</option>
                        <option value="2">客户服务部负责人</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label required">万物通商户编号</label>
                <div class="layui-input-block">
                    <input type="text" name="phone" lay-verify="required" lay-reqtext="万物通商户编号不能为空" placeholder="请输入"
                        class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label required">账户名</label>
                <div class="layui-input-block">
                    <input type="text" name="phone" lay-verify="required" lay-reqtext="账户名不能为空" placeholder="请输入"
                        class="layui-input">

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label required">银行账号</label>
                <div class="layui-input-block">
                    <input type="text" name="phone" lay-verify="required" lay-reqtext="银行账号不能为空" placeholder="请输入"
                        class="layui-input">
                </div>
            </div>


            <div class="solid-top pt-5">
                <div class="flex-center">
                    <button class="layui-btn layui-btn-primary layui-btn-sm btn-70" lay-on="closeBtn">取消</button>
                    <button class="layui-btn layui-btn-normal layui-btn-sm btn-70" lay-submit
                        lay-filter="saveBtn">确认保存</button>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['form', 'miniPage'], function () {
        var form = layui.form,
            layer = layui.layer,
            util = layui.util,
            miniPage = layui.miniPage;

        /**
         * 初始化表单，要加上，不然刷新部分组件可能会不加载
         */
        form.render();
        form.render('select');
        var parentIndex = layer.index;
        // 普通事件
        util.on('lay-on', {
            // 关闭弹出层
            "closeBtn": function () {
                layer.close(parentIndex);

            }
        });

        //监听提交
        form.on('submit(saveBtn)', function (data) {
            var index = layer.alert(JSON.stringify(data.field), {
                title: '最终的提交信息'
            }, function () {
                layer.close(index);
                miniPage.hashHome();
            });
            return false;
        });

    });
</script>